package com.squid.templateProject.service.organization;


import com.baomidou.mybatisplus.extension.service.IService;
import com.squid.templateProject.bean.entity.OrganizationEntity;
import com.squid.templateProject.bean.req.PageReq;
import com.squid.templateProject.bean.req.organization.OrganizationInsertUpdateReq;
import com.squid.templateProject.bean.req.organization.OrganizationSelectPageReq;
import com.squid.templateProject.bean.resp.PageResp;
import com.squid.templateProject.bean.resp.organization.OrganizationSelectPageResp;

/**
 * @author jinhang1
 * @description 针对表【organization(组织表)】的数据库操作Service
 * @createDate 2024-01-23 17:28:39
 */
public interface OrganizationEntityService extends IService<OrganizationEntity> {


    /**
     * Description 新增
     *
     * @param req
     * @author jinhang1
     * @since 2024/01/24
     */
    void insertOrganization(OrganizationInsertUpdateReq req);

    /**
     * Description 更新
     *
     * @param req
     * @author jinhang1
     * @since 2024/01/24
     */
    void updateOrganization(OrganizationInsertUpdateReq req);

    /**
     * Description 删除
     *
     * @author jinhang1
     * @since 2024/01/24
     */
    void deleteOrganization(String id);

    /**
     * Description 分页
     *
     * @param req
     * @return {@link PageResp }<{@link OrganizationSelectPageResp }>
     * @author jinhang1
     * @since 2024/01/24
     */
    PageResp<OrganizationSelectPageResp> pageOrganization(PageReq<OrganizationSelectPageReq> req);
}
